const path= require("path");
module.exports = {
    webpack:{
        alias:{
            '@':path.resolve(__dirname,'src')
        }
    },
    style: {
      postcss: {
        mode: 'extends',
        loaderOptions: {
          postcssOptions: {
            ident: 'postcss',
            plugins: [
              [
                'postcss-pxtorem',
                {
                  rootValue: 375 / 10, // 根元素字体大小
                  propList: ['*']
                },
              ],
            ],
          },
        },
      },
    },
}